const routes = [
    {name:"Login",
        path:"/login",
        component: () => import('@/login')
    },
    {name:"Index",
        path:"/index",
        component: () => import('@/index'),
        children:[{
            name:"Product",
            path:"/index/product",
            component:() => import('@/product/product')
        },{
            name:"Order",
            path:"/index/order",
            component:() => import('@/order/order')
        },{
            name:"User",
            path:"/index/user",
            component:() => import('@/user/user')
        },
            {   name:"Em",
                path:"/index/employee",
                component:() => import('@/employee/employee')
            }
        ]
    },


    {
        name:"Box",
        path:"/box",
        component: () => import('@/checkboxTest')
    },{
        name:"ElementUI",
        path:"/elementUI",
        component: () => import('@/elementUI/main'),
        children: [{
            name:"Layout",
            path:"/elementUI/layout",
            component: () => import('@/elementUI/layout')
        },
            {
                name:"Component",
                path:"/elementUI/component",
                component: () => import('@/elementUI/component')
            },
            {
                name:"Form",
                path:"/elementUI/form",
                component: () => import('@/elementUI/form')
            },
            {
                name:"Chart",
                path:"/elementUI/chart",
                component: () => import('@/elementUI/chart')
            }
        ]
    }


    ];

export default routes ;